﻿using ERP.Domain.Products;
using Microsoft.AspNetCore.Mvc;

namespace Product.API.ISerivces.Products
{
    /// <summary>
    /// 商品服务接口
    /// </summary>
    public interface IProductSerivces
    {
        /// <summary>
        /// 添加产品
        /// </summary>
        /// <param name="product">产品表</param>
        /// <returns>返回受影响行数</returns>
        Task<int> AddProduct(ERP.Domain.Products.Product product);

        /// <summary>
        /// 修改产品
        /// </summary>
        /// <param name="product">产品表</param>
        /// <returns>返回受影响行数</returns>
        Task<int> UpdateProduct(ERP.Domain.Products.Product product);

        /// <summary>
        /// 删除产品（逻辑）
        /// </summary>
        /// <param name="Id">产品主键</param>
        /// <returns>返回受影响行数</returns>
        Task<int> DeleteProduct(int Id);


    }
}
